<?php
	class AdminDthink_Form_ValidateProvider
	{			
		public function validProviderName($provider_name)
		{
			$validator = new Zend_Validate_NotEmpty();
			if($validator->isValid($provider_name))
			{
				$validator = new Zend_Validate_StringLength(1, 100);
				if($validator->isValid($provider_name))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			else
			{
				return false;
			}
			
		}
		
		public function validProviderLink($provider_link)
		{
			$validator = new Zend_Validate_NotEmpty();			
			if($validator->isValid($provider_link))
			{
				return true;
			}
			else
			{
				return false;			
			}
		}
		
		public function validProviderIcon($provider_icon)
		{
			$validator = new Zend_Validate_NotEmpty();
			if($validator->isValid($provider_icon))
			{
				return true;
			}
			else
			{
				return false;
			}
		}
		
		public function validProviderSearch($keyword)
		{
			$validator = new Zend_Validate_NotEmpty();
			if($validator->isValid($keyword))
			{
				return true;
			}
			else
			{
				return false;
			}
		}
	}
